{extend name="public:index"/}{block name="title"}{:sysconf('title')}{/block}{block name="content"}
<section class="ncsearchbox">
    <div class="logo"><img src="__INDEX__/images/logo.png" alt=""></div>
    <form action="{:url('Index/search')}">
        <div class="search"><p class="left"><input name="keywords" class="sous" placeholder="天承万物，肽安天下" style="outline:none"></p>
            <p class="right">
                <button></button>
            </p>
        </div>
    </form>
</section>
<section class="swiper-container indlb">
    <div class="swiper-wrapper">
        {foreach name="lunbo" item="lunbo"}
        <div class="swiper-slide"><a href="{$lunbo.link_url}"><img src="{$lunbo.img_url}" alt="banner"></a></div>
        {/foreach}
    </div>
    <div class="swiper-pagination"></div>
</section>
<section class="ncbj_fenl">
    <ul> {foreach name="nav" item="nav"}
        <li><a href="{$nav.link_url}"><img src="{$nav.img_url}">
            <p>{$nav.title}</p></a></li>
        {/foreach}
        <li class="ncguanzhu">
            <a href="javascript:;"><img src="__INDEX__/images/fenx.png">
            <p>关注我们</p></a>
        </li>
    </ul>
</section>
<section class="nctanchuang">
    <div class="tanchuang"><p class="p1">长按关注公众号</p>
        <p class="p2">精彩活动，优惠活动享不停！</p> 
        <img src="{:sysconf('wx_qrcode')}" alt="">
        <p class="p3">关闭</p>
    </div>
</section>
<section class="hdddbox">
    <div class="left"><a href="{$couponImg[0]['link_url']}"><img src="{$couponImg[1]['img_url']}" alt=""></a></div>
    <div class="right"><a href="{$couponImg[0]['link_url']}"><img src="{$couponImg[1]['img_url']}" alt=""></a></div>
</section>
<section class="ncbj_caipro ncbj_caipro1">
    <div class="bt"><em><img src="__INDEX__/images/yzb2.png" alt="">热销商品</em><i><a href="">更多 >></a></i></div>
    <div class="caiprobox">
        <div class="caipro">
            <div class="caipromain"> {if condition="$goodsRec"}
                <ul> {volist name="goodsRec" id="rec"}
                    <li class="caip">
                    <a href="{:url('Goods/show',['id'=>$rec['id']])}">
                    <p class="p"><img src="{$rec.img_url}" alt=""></p>
                    <div class="pp">
                    <b>{$rec.title}</b>
                    <p class="p2"><em>{$rec.sell_price}元</em><i>{$rec.market_price}元</i></p>
					</div>
                    </a></li>
                    {/volist}
                </ul>
                {else/}
                <div class="nofind"><img src="__INDEX__/images/nosp.png" alt="">
                    <p>暂时没有商品</p></div>
                {/if}
                <div class="jiazai" style="display: none;"><em></em>
                    <p><img src="__INDEX__/images/loding.gif" alt=""></p>
                    <p>努力加载中</p></div>
            </div>
        </div>
    </div>
</section>
{include file="include/nav"}
<script>    $('.ncsearchbox .right button').click(function () {
    window.location.href = "search.html";
});
var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    paginationClickable: true,
    centeredSlides: true,
    autoplay: 2500,
    autoplayDisableOnInteraction: false
});
var swiper = new Swiper('.swiper-container1', {slidesPerView: 3, paginationClickable: true});
$('.ncguanzhu').click(function () {
    $('.nctanchuang').show();
});
$('.nctanchuang .p3').click(function () {
    $('.nctanchuang').hide();
})</script>{/block}